
package com.xquant.common.engine.xPP.cxf.webservice;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>EventTypeEnum的 Java 类。
 * 
 * <p>以下模式片段指定包含在此类中的预期内容。
 * <pre>
 * &lt;simpleType name="EventTypeEnum"&gt;
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
 *     &lt;enumeration value="None"/&gt;
 *     &lt;enumeration value="Exercise"/&gt;
 *     &lt;enumeration value="UP_IN"/&gt;
 *     &lt;enumeration value="UP_OUT"/&gt;
 *     &lt;enumeration value="DOWN_IN"/&gt;
 *     &lt;enumeration value="DOWN_OUT"/&gt;
 *     &lt;enumeration value="CASH_INCOME"/&gt;
 *   &lt;/restriction&gt;
 * &lt;/simpleType&gt;
 * </pre>
 * 
 */
@XmlType(name = "EventTypeEnum")
@XmlEnum
public enum EventTypeEnum {

    @XmlEnumValue("None")
    NONE("None"),
    @XmlEnumValue("Exercise")
    EXERCISE("Exercise"),
    UP_IN("UP_IN"),
    UP_OUT("UP_OUT"),
    DOWN_IN("DOWN_IN"),
    DOWN_OUT("DOWN_OUT"),
    CASH_INCOME("CASH_INCOME");
    private final String value;

    EventTypeEnum(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static EventTypeEnum fromValue(String v) {
        for (EventTypeEnum c: EventTypeEnum.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
